<div class="gap"></div>
<?php
$form = $this->beginWidget('GxActiveForm', array(
    'id' => 'step-3',
    'enableAjaxValidation' => true,
    'htmlOptions' => array('class' => "form-horizontal", 'role' => 'form')
        ));
?>
<section class="form-step1">
    <div class="container">
        <div class="row">
            <div class="col-lg-12">
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <h3 class="panel-title">UGC Regulations/Affidavit (5/5)</h3>
                    </div>
                    <div class="panel-body">
                        <div class="col-lg-12">
                            <div class="errorMessage" id="errortext"> </div>

                            <div class="checkbox">
                                <label>
                                    <input type="checkbox" name="property1">
                                    I confirm that I have read UGC's regulations on Ragging. (To read, click on the link <a class="blue" href="#">ABSTRACT OF UGC REGULATIONS ON RAGGING</a> ) 
                                </label>
                            </div>

                           

                            <div class="checkbox">
                                <label>
                                    <input type="checkbox"  name="property3">
                                    I promise I will not indulge in Ragging or any form of violent behaviour. Neither will I tolerate being ragged or subjected to violence. 
                                </label>
                            </div>

                            <div class="checkbox">
                                <label>
                                    <input type="checkbox"  name="property4">
                                    I understand that if I am accused of Ragging, the responsibility is on me to prove that I am not guilty. 
                                </label>
                            </div>

                            <div class="checkbox">
                                <label>
                                    <input type="checkbox" value="">
                                    I will not remain a spectator to acts of Ragging. I will report the matter immediately to my Principal/Director and to the Anti Ragging Help line at 1800 180 5522 or email to helpline@antiragging.in. 
                                </label>
                            </div>
                            <div class="gap"></div>



                        </div>

                        <div class="row">
                            <div class="col-lg-12">
                                <div class="button-cont">
                                    <a href="<?php echo yii::app()->createUrl('onlineAffidavit/step5'); ?>" class="read-more pull-left">PREV</a>
                                    <?php
                                    echo CHtml::submitButton(Yii::t('app', 'Submit'), array('class' => 'read-more pull-right', 'name' => 'savedata'));
                                    ?>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>

    </div>
</section>
<?php
$this->endWidget();
?>
<div class="gap"></div>
<div class="gap"></div>
<div class="gap"></div>
<div class="gap"></div>
<script>
    $(".read-more").click(function() {
        if ($("input:checked").length < 5) {
            $("#errortext").text('Please select All checkbox one checkbox');
            return false;
        } else {
            return true;
        }

    });
</script>